package com.future.account.config;

import com.netflix.client.config.IClientConfig;
import com.netflix.loadbalancer.IRule;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 自定义Ribbon配置
 *
 * @author shiyong
 * 2021/6/10 9:41
 */
@Configuration(proxyBeanMethods = false)
public class MyRibbonClientConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public IRule ribbonRule() {
        return new MyRule();
    }
}
